/**
 *	View Driver interface
 */
Jx.declare('Jx.lib.View', {
	
	$extend: 'Jx.Base',
	
	$accessors: {
		
		x: undefined,
		
		y: undefined,
		
		width: undefined,
		
		height: undefined
		
	},
	
	$actions: [
		
		'initialize'
		
	],

	engine: undefined,
	
	engineClass: 'Jx.lib.Engine',
	
	constructor: function(engine){
		
		var args = Array.prototype.slice.call(arguments, 1);
		
		if (Jx.instanceOf(engine, this.engineClass)){
			
			this.engine = engine;
			
			this.initialize.apply( this,  args );
			
			this.$super(args);
			
		} else {
			
			throw Jx.createError('Type', 'invalid engine argument [', engine, ']');
		
		}
		
	}
	
	
	
});
